package com.example.eurekaclient_consumer2;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@Slf4j
//开启Feign远程调用
@EnableFeignClients
//开启Eureka的客户端
@EnableEurekaClient
public class EurekaClientConsumer2Application {

    public static void main(String[] args) {
        SpringApplication.run(EurekaClientConsumer2Application.class, args);
        log.info("Eureka服务端消费者2启动成功...");
    }

}
